﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace Ecosystème
{
    public partial class ParametrePartie : Form
    {
        String cheminXML = "C:\\Users\\adrien\\Desktop\\listeEtreVivant2.xml";

        public ParametrePartie()
        {
            InitializeComponent();
            //chargerTableau();
            //Arborescence arbre = new Arborescence(cheminXML, TVAnimauxPresents);      
        }

        private void chargerTableau()
        {
            DataSet ds = new DataSet();
            ds.ReadXml(cheminXML);
            dgvAnimaux.DataSource = ds; 
        }
        private void btnStart_Click(object sender, EventArgs e)
        {
            Plateau plat = new Plateau();
            plat.Show();
            this.Hide();
        }

        private void btnRetour_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnAjoutEspece_Click(object sender, EventArgs e)
        {
            frmAjoutEspece f = new frmAjoutEspece();
            f.ShowDialog();
        }

    }
}
